package com.csit.service;

import java.util.Date;
import java.util.Map;

import com.csit.entity.Wastage;
import com.csit.util.ResponseMsgUtil;

/**
 * 
 * @Description:损耗service
 * @Copyright: 福州骏华信息有限公司 (c)2012
 * @Created Date : 2012-12-8
 * @author longweier
 * @vesion 1.0
 */
public interface WastageService extends BaseService<Wastage, Integer> {
	
	/**
	 * 
	 * @Description: 新增
	 * @param
	 * @Create: 2012-12-8 下午08:21:31
	 * @author longweier
	 * @update logs
	 * @param wastage
	 * @param productids
	 * @param qtys
	 * @param prices
	 * @param notes
	 * @return
	 * @return
	 * @throws Exception
	 */
	public ResponseMsgUtil addWastage(Wastage wastage,String productids,String qtys,String prices,String notes);
	
	/**
	 * 
	 * @Description: 删除
	 * @param
	 * @Create: 2012-12-8 下午08:45:59
	 * @author longweier
	 * @update logs
	 * @param wastage
	 * @return
	 * @return
	 * @throws Exception
	 */
	public ResponseMsgUtil deleteWastage(Wastage wastage);
	
	/**
	 * 
	 * @Description: 更新
	 * @param
	 * @Create: 2012-12-8 下午08:22:28
	 * @author longweier
	 * @update logs
	 * @param wastage
	 * @return
	 * @return
	 * @throws Exception
	 */
	public ResponseMsgUtil updateWastage(Wastage wastage);
	
	/**
	 * 
	 * @Description: 查询列表
	 * @param
	 * @Create: 2012-12-8 下午08:23:39
	 * @author longweier
	 * @update logs
	 * @param pageNumber
	 * @param pageSize
	 * @param wastage
	 * @param beginDate
	 * @param endDate
	 * @return
	 * @return
	 * @throws Exception
	 */
	public String query(Integer pageNumber,Integer pageSize,Wastage wastage, Date beginDate,Date endDate);
	
	/**
	 * 
	 * @Description: 统计
	 * @param
	 * @Create: 2012-12-8 下午09:48:13
	 * @author longweier
	 * @update logs
	 * @param wastage
	 * @param beginDate
	 * @param endDate
	 * @return
	 * @return
	 * @throws Exception
	 */
	public Map<String, Double> countWastage(Wastage wastage,Date beginDate,Date endDate);
}
